package com.sqj.prototypePattern.shallow;

public class ShallowCloneTest {
    public static void main(String[] args) {
        Car car=new Car();
        car.setSize("aa");
        car.setColor("red");
        car.setName("audi");
        Client client = new Client(car);
        Car prototype = (Car) client.startClone(car);
        System.out.println(prototype);
        System.out.println(car==prototype);
    }
}
